package com.zjt.service.user;

import com.zjt.entity.Report;
import com.zjt.entity.resource.ReportResource;
import com.zjt.web.api.vo.base.PageVO;
import org.springframework.data.domain.Page;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-25
 * Time: AM6:09
 * 举报中心接品定义
 * To change this template use File | Settings | File Templates.
 */
public interface IReportService {
    Report saveReport(long userId,String address,String lat,String lng,String content);
    List<Report> getReportListByUserId(long userId);
    int countRecordByUserId(long userId);

    /**
     * 保存举报图片
     * @param reportId
     * @param path   图片相对路径  例如：xxxx.jpg   全路径由静态常量表中读取构造
     * @return
     */
    ReportResource saveReportResource(long reportId,String path);


    Page<Report> getReportList(PageVO pageVO);
}
